//https://developer.aliyun.com/article/312097
//  MyArray.h
//  类型通配符
//
//  Created by 李煜 on 2023/9/12.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
//__covariant 协变  __contravariant:逆变
@interface MyArray<__covariant OneType> : NSObject

@property(nonatomic, strong,nonnull) NSMutableArray<OneType> *array;


- (void)addObj:(nonnull OneType) obj;

@end

NS_ASSUME_NONNULL_END
